package Properties.T4;

import java.io.FileInputStream;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

public class T4 {

    public static void main(String[] args) throws IOException {

        Properties pro = new Properties();
        FileInputStream fis = new FileInputStream("mapdata.properties");
        pro.load(fis);
        fis.close();



        Map<String,String>map = new HashMap<>();
        for (String s : pro.stringPropertyNames()) {
            map.put(s,pro.getProperty(s));
        }
        for (String s : map.keySet()) {
            System.out.println(s+" "+map.get(s));
        }

    }
}